home *** CD-ROM | disk | FTP | other *** search
/ Graphics Plus / Graphics Plus.iso / general / modelers / geomview / source.lha / Geomview / include / instP.h < prev    next >
C/C++ Source or Header  |  1993-02-09  |  1KB  |  51 lines

  1. /* Copyright (c) 1992 The Geometry Center; University of Minnesota
  2.    1300 South Second Street;  Minneapolis, MN  55454, USA;
  3.    
  4. This file is part of geomview/OOGL. geomview/OOGL is free software;
  5. you can redistribute it and/or modify it only under the terms given in
  6. the file COPYING, which you should have received along with this file.
  7. This and other related software may be obtained via anonymous ftp from
  8. geom.umn.edu; email: software@geom.umn.edu. */
  9.  
  10. /* Authors: Charlie Gunn, Stuart Levy, Tamara Munzner, Mark Phillips */
  11.  
  12. #ifndef INSTPDEFS
  13. #define INSTPDEFS
  14.  
  15. /*
  16.  * Private definitions for Inst's.
  17.  */
  18.  
  19. #include "inst.h"
  20. #include "bboxP.h"    /* includes geomclass.h */
  21.  
  22. #define INSTMAGIC    GeomMagic('i', 2)
  23.  
  24. #define INST_4D    VERT_4D
  25.  
  26. #define INSTFIELDS \
  27.   GEOMFIELDS \
  28.   Transform     axis;        /* this ought to go... */ \
  29.   Geom    *geom; \
  30.   Handle    *geomhandle; \
  31.   Geom        *tlist; \
  32.   Handle    *tlisthandle; \
  33.   Handle    *axishandle; \
  34.   int         instflag;    /* currently, only bit read is 4D */ \
  35.   int        seq;
  36.  
  37. struct Inst {
  38.   INSTFIELDS
  39. };
  40.  
  41. extern GeomClass *InstClass;        /* Public read-only; valid only
  42.                      * after first call to InstMethods()
  43.                      */
  44.  
  45. extern Inst *InstCreate( Inst *exist, GeomClass *Class, va_list attrs );
  46. extern void  InstDelete( Inst * );
  47. extern Inst *InstCopy( Inst * );
  48. extern Inst *InstDice( Inst *, int nu, int nv );
  49.  
  50. #endif /*INSTPDEFS*/
  51.